import request from '@/utils/request'

export function getBusinesss(query) {
  return request({
    url: '/supply/business/getList',
    method: 'post',
    data: query
  })
}

export function getBusiness(id) {
  return request({
    url: '/supply/business/getDetail',
    method: 'post',
    data: id
  })
}

export function saveBusiness(formdata) {
  return request({
    url: '/supply/business/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusBychannelID(id) {
  return request({
    url: '/supply/business/change-status',
    method: 'post',
    data: id
  })
}

export function removeBusinessByID(id) {
  return request({
    url: '/supply/business/remove',
    method: 'post',
    data: id
  })
}

